@use '_variables' as *;

.form-actions {
  display: flex;
  height: 30px;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
}

.action-button {
  display: flex;
  align-items: center;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--primary-color);

  &:hover {
    color: var(--hover-color);
  }
}

.cancel {
  color: var(--disabled-color);
}

.submit-button {
  font-size: 0.8rem;
  padding: 1px 8px;
  border-radius: 0.2rem;
  border: none;
  cursor: pointer;
  background-color: var(--primary-color);
  color: white;
  transition: all $duration ease-in-out;

  &:disabled {
    background-color: var(--border-color);
    cursor: not-allowed;
  }

  &:hover:not(:disabled) {
    opacity: 0.9;
  }
}
